package jmu.edu.yjc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.domain.entity.Keywords;
import jmu.edu.yjc.domain.vo.keyword.DeleteVo;

import java.util.List;


/**
 * 关键字表(Keywords)表服务接口
 *
 * @author makejava
 * @since 2023-03-15 23:26:04
 */
public interface KeywordsService extends IService<Keywords> {

    List<String> getAllWordType();

    List<String> queryKeywordsByWordType(String wordType);

    ResponseResult keywordList(Integer pageNum, Integer pageSize, String wordType, String keyword);

    ResponseResult randomTags();

    List<Keywords> getAllWordTypeAndCnMean();

    ResponseResult fullTag();

    boolean isExistKeyword(String keyword , String wordType);
    ResponseResult addUpdateWordType(Keywords keywords);
    ResponseResult updateRedisCache();

    ResponseResult deleteKeywords(DeleteVo deleteVo);

    ResponseResult updateKeywords(Keywords keywords);
}

